<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2015/6/2
  Time: 19:02
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
    <script type="text/javascript"
            src="<c:url value="/js/enthalpy/enthalpy.js"/>"></script>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <div class="form-body">
                                <!--BEGIN LEFT-->
                                <div class="col-md-6">
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                绝对压力P-输入
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="B2">
                                                        <span class="help-inline">
                                                        MPa </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                温度t-输入
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="C2">
                                                    <span class="help-inline">
                                                        ℃ </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                焓值H-输出
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="B6">
                                                    <span class="help-inline">
                                                    kj/kg </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                饱和压力Ps-输出
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="E2">
                                                <span class="help-inline">MPa </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                饱和温度ts-输出
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="H2">
                                                    <span class="help-inline">
                                                        ℃ </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class ="row">
                <div class="col-md-3"></div>
                <div class="col-md-6">
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="fa fa-comments"></i>计算结果列表
                            </div>
                        </div>
                        <div class="portlet-body">
                            <div class="table-responsive">
                                <table class="table table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th> </th><th>计算项名称</th><th>计算结果</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="active">
                                        <td>1</td><td>G2</td><td id="g2_show">&nbsp;</td>
                                    </tr>
                                    <tr class="success">
                                        <td>2</td><td>饱和温度</td><td id ="h2_show">&nbsp;</td>
                                    </tr>
                                    <tr class="warning">
                                        <td>3</td><td>绝对温度</td><td id="d2_show">&nbsp;</td>
                                    </tr>
                                    <tr class="danger">
                                        <td>4</td><td>饱和压力</td><td id="e2_show">&nbsp;</td>
                                    </tr>
                                    <tr class="danger">
                                        <td>5</td><td>i2</td><td id="i2_show">&nbsp;</td>
                                    </tr>
                                    <tr class="danger">
                                        <td>6</td><td>f2</td><td id="f2_show">&nbsp;</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-3"></div>
            </div>
        </div>
    </div>
</div>
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/DataTables/media/js/jquery.dataTables.min.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/ztree_v3/js/jquery.ztree.core-3.5.min.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/ztree_v3/js/jquery.ztree.excheck-3.5.min.js"/>"></script>


<script type="text/javascript">
    $(document).ready(function () {
        <%
        if (session.getAttribute("caseId") == null) {
        %>
        toast.error("方案为空，请新建方案");
        setTimeout(function(){
            window.location.href = basePath + "power/power?menuId=12";
        },1200);
        <%
        } else {
        %>
        enthalpy.init();
        enthalpy.recover();
        <%
        }
        %>
    });
</script>
</body>
</html>
